package com.qfedu.fmmll.submit.service.feign;

import com.qfedu.fmmall.vo.ShoppingCartVO;
import com.qfedu.fmmll.submit.service.fallback.OrderItemAddFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Repository;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * @author : yanBin
 * @date :2022/2/10 16:42
 */
@Repository
@FeignClient(value = "order-item-add",fallback = OrderItemAddFallback.class )
public interface OrderItemAddClient {
    @PostMapping("/item/save")
    int addItem(@RequestBody List<ShoppingCartVO> shoppingCartVOList, @RequestParam("orderId") String orderId);
}
